package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 组织关系实体类（银行/保险）
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/21 14:49</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author lhx
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_ORGANIZATION")
public class Organization {
    /** 机构ID organizationId */
    @TableId(value = "ORGANIZATION_ID", type = IdType.ASSIGN_UUID)
    private String organizationId;

    /** 机构编码 organizationCode */
    @TableField(value = "ORGANIZATION_CODE")
    private String organizationCode;

    /** 机构名称 organizationName */
    @TableField(value = "ORGANIZATION_NAME")
    private String organizationName;

    /** 机构联系电话 organizationTelephone */
    @TableField(value = "ORGANIZATION_TELEPHONE")
    private String organizationTelephone;

    /** 机构类型 organizationType */
    @TableField(value = "ORGANIZATION_TYPE")
    private int organizationType;

    /** 机构详细描述 organizationDescribe */
    @TableField(value = "ORGANIZATION_DESCRIPTION")
    private String organizationDescription;

    /** 上级机构ID parentOrganizationCode */
    @TableField(value = "PARENT_ORGANIZATION_CODE")
    private String parentOrganizationCode;

    /**  创建人id createUserId */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /** 创建时间 createTime */
    @TableField(value = "CREATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /** 修改人id updateUserId */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /** 修改时间 updateTime */
    @TableField(value = "UPDATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 备注 memo */
    @TableField(value = "MEMO")
    private String memo;

    /** 删除状态 deleteFlag */
    @TableField(value = "IS_DELETE")
    private boolean deleteFlag ;

    /**启用状态 IS_ENABLE*/
    @TableField(value = "IS_ENABLE")
    private boolean enableFlag;

    /**机构名称全拼 ORGANIZATION_NAME_FULL_SPELLING*/
    @TableField(value = "ORGANIZATION_NAME_FULL_SPELLING")
    private String organizationNameFullSpelling;


}
